home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / idioms.lha / idioms / ecoord.h < prev    next >
C/C++ Source or Header  |  1993-08-08  |  826b  |  23 lines

  1. /* Copyright (c) 1992 by AT&T Bell Laboratories. */
  2. /* Advanced C++ Programming Styles and Idioms */
  3. /* James O. Coplien */
  4. /* All rights reserved. */
  5.  
  6. //************************************************************//
  7. //                                                            //
  8. //     F I L E :    E C O O R D . H                           //
  9. //                                                            //
  10. //         Interface for struct Coordinate                    //
  11. //                                                            //
  12. //************************************************************//
  13.  
  14. #define _COORDINATE_H
  15.  
  16. // This is a simple public class that represents a Cartesian
  17. // coordinate on the graphics screen
  18.  
  19. struct Coordinate {
  20.     int x, y;
  21.     Coordinate(int xx = 0, int yy = 0) { x = xx; y = yy; }
  22. };
  23.